<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
	window.onload = function(){
		var title = document.getElementById('title');
		var span = title.getElementsByTagName('span')[0];//获得span标签
		var t = 5;
		// 设置定时器
		setInterval(function(){
			t--;
			span.innerHTML = t;//将t的值写到span里面
			if(t==1){
				location.replace('http://bbs.houdunwang.com');
			}
		},1000)
	}
</script>
</head>

<body>
<h1 id="title">亲，出错啦！<span>5</span>秒后跳转回后盾论坛首页！</h1>
</body>
</html>
